<?php
namespace Common\Model;
use Think\Model;

class RegionModel extends Model {
    /**
     * model的中文名称
     */
    public $modelName = '地区';

    /**
     * model的icon
     */
    public $modelIcon = 'icon-globe';
	
	protected $_auto = [
		["create_time", "time", 1, "function"],
		["update_time", "time", 2, "function"],
	];
	protected $_validate = [
		["id", "require", "ID必须填写!"],
		["name", "require", "地区必须填写!"],
		["create_time", "require", "创建时间必须填写!"],
		["update_time", "require", "更新时间必须填写!"],
	];
	public $excel = false;
	public $delete = false;
	public $fieldMap = [
		"id" => [
			"type" => "input",
			"name" => "ID",
			"show" => true,
			"search" => true,
			"input" => false,
			"required" => true,
			"detail" => true,
			"excel" => true,
			"content" => "",
			"list_specify" => "",
			"update_specify" => "",
			"detail_specify" => "",
		],
		"name" => [
			"type" => "input",
			"name" => "地区",
			"show" => true,
			"search" => true,
			"input" => true,
			"required" => true,
			"detail" => true,
			"excel" => true,
			"content" => "",
			"list_specify" => "",
			"update_specify" => "",
			"detail_specify" => "",
		],
		"create_time" => [
			"type" => "datetime",
			"name" => "创建时间",
			"show" => false,
			"search" => false,
			"input" => false,
			"required" => true,
			"detail" => true,
			"excel" => true,
			"content" => "",
			"list_specify" => "",
			"update_specify" => "",
			"detail_specify" => "",
		],
		"update_time" => [
			"type" => "datetime",
			"name" => "更新时间",
			"show" => false,
			"search" => false,
			"input" => false,
			"required" => true,
			"detail" => true,
			"excel" => true,
			"content" => "",
			"list_specify" => "",
			"update_specify" => "",
			"detail_specify" => "",
		],
	];
}